//
//  XPLoginSettingView.m
//  QQ
//
//  Created by nhope on 2017/4/24.
//  Copyright © 2017年 xiaopin. All rights reserved.
//

#import "XPLoginSettingView.h"

@implementation XPLoginSettingView

+ (instancetype)settingViewFromXib {
    NSArray *views = nil;
    XPLoginSettingView *settingView = nil;
    [[NSBundle mainBundle] loadNibNamed:@"XPLoginSettingView" owner:nil topLevelObjects:&views];
    for (NSView *subview in views) {
        if ([subview isKindOfClass:[self class]]) {
            settingView = (XPLoginSettingView *)subview;
            settingView.wantsLayer = YES;
            settingView.layer.backgroundColor = [rgbColor(234.0, 237.0, 239.0) CGColor];
            break;
        }
    }
    return settingView;
}

- (void)drawRect:(NSRect)dirtyRect {
    [super drawRect:dirtyRect];
    
    // Drawing code here.
}

@end
